package com.lb.activity.sys.service;

import com.lb.activity.po.Permission;
import com.lb.activity.po.Tree;

import java.util.List;

public interface PermissionService {

    Permission getPermission(Long permissionid);

    List<Permission> AllMeuns();

    void addMenu(Permission permission);

    List<Permission> getMenusByName(Permission permission);

    List<Permission> getMenusByPid(Long id);

    void delete(Long id);

    List<Tree<Permission>> listMenuTree(Long userId);

    Tree<Permission> getTree(Long id);

    List<Permission> getMeunsList();

    void updateRoleAndmenuIds(Long roleId, List<String> menuIds);
}
